package com.yoomiito.app.adapter.cicle;

import androidx.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yoomiito.app.R;
import com.yoomiito.app.model.cicle.CicleOrderInfo;
import com.yoomiito.app.utils.ResUtil;

import java.util.List;

public class CicleBuyGoodsAdapter extends BaseQuickAdapter<CicleOrderInfo.DataBean, BaseViewHolder> {
    public CicleBuyGoodsAdapter(@Nullable List<CicleOrderInfo.DataBean> data) {
        super(R.layout.item_cicle_buy_good, data);
    }

    @Override
    protected void convert(final BaseViewHolder helper, CicleOrderInfo.DataBean item) {
        ((TextView)helper.getView(R.id.tv_order_num)).setText(ResUtil.getString(R.string.my_order_num) + item.getOrder_id());
        ((TextView)helper.getView(R.id.tv_name)).setText(item.getItem_title());
    }
}
